﻿using Microsoft.Ajax.Utilities;
using MVCTest0001.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVCTest0001.Models
{
    public class MusicStorDbIintializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {

        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "花花" });

            context.Genres.Add(new Genre { Name = "流行", Description = "流行音乐" });


            base.Seed(context);
        }
    }
}